<template>
  <div class="chart-card">
    <el-card :header="title">
      <slot>
        <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
      </slot>
    </el-card>
  </div>
</template>

<script setup lang="ts">
interface IProps {
  title?: string;
}
withDefaults(defineProps<IProps>(), {
  title: '标题'
});
</script>

<style scoped lang="scss">
.chart-card {
}
</style>
